Repository navigation
Conversation
chrono was only a dev-dependency, used by the tests to build timestamps and durations. Replace it with jiff 1 (`Timestamp::now().as_second()`, `as_millisecond()`, `SignedDuration::from_mins`). No change to the public API. CI and security workflows: pull requests are checked only against master (the dev branch is no longer a target).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replace the
chronodev-dependency withjiff1 (std only), and run theCI and security workflows only for pull requests against
master.Changes
Cargo.toml:chrono = "0.4"->jiff = { version = "1", default-features = false, features = ["std"] }(dev-dependency).
src/jwt_util.rs(tests),tests/errors.rs,tests/oauth.rs,tests/requests.rs:Timestamp::now().as_second()/as_millisecond()and
SignedDuration::from_mins(5)in place of the chrono calls..github/workflows/ci.yml,security.yml:pull_request.branchesisnow
[master](it was[master, dev]).Impact
None: the public API and the runtime dependencies do not change.
Only the tests and the CI triggers are affected.